package com.flying.acls.domain.resource;

import com.flying.acls.domain.context.ExpressionContext;
import com.flying.acls.model.ExprType;
import com.flying.acls.model.ResExpr;
import com.flying.acls.model.ResType;
import org.springframework.security.web.FilterInvocation;

import java.util.Collections;
import java.util.List;

public class NoOpUrlResourceBuilder {
    public List<ResExpr> build(ExpressionContext context, FilterInvocation fi) {
        return Collections.singletonList(ResExprFactory.get(ResType.URL, ExprType.DIRECT, fi.getRequestUrl()));
    }
}
